package com.itheima.service.impl;

import com.itheima.mapper.UserMapper;
import com.itheima.pojo.User;
import com.itheima.service.UserService;
import com.itheima.util.MybatisUtil;

public class UserServiceImpl implements UserService {
    @Override
    public User login(String userName, String password) {
        UserMapper mapper = MybatisUtil.getMapper(UserMapper.class);
        User user = mapper.findByUserNameAndPassword(userName, password);
        return user;
    }

    @Override
    public void register(String userName, String password) {

    }
}
